package com.lwx.annotation;

import java.lang.reflect.Method;

public class AnnotationReflect {
    public static void main(String[] args) throws Exception {
        AnnotationBean annotationBean = new AnnotationBean();
        Method method = AnnotationBean.class.getMethod("test");
        method.getParameterAnnotations();
        AnnotationTest annotationTest = method.getAnnotation(AnnotationTest.class);
        System.out.println(annotationTest.value());
    }
}
